package com.ruoyi.project.modules.pageImageElementDetail.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.modules.pageImageElementDetail.mapper.PageImageElementConditionDetailMapper;
import com.ruoyi.project.modules.pageImageElementDetail.domain.PageImageElementConditionDetail;
import com.ruoyi.project.modules.pageImageElementDetail.service.IPageImageElementConditionDetailService;
import com.ruoyi.common.core.text.Convert;

/**
 * 页面图片与元素条件明细Service业务层处理
 * 
 * @author smallrain
 * @date 2022-05-06
 */
@Service
public class PageImageElementConditionDetailServiceImpl implements IPageImageElementConditionDetailService 
{
    @Autowired
    private PageImageElementConditionDetailMapper pageImageElementConditionDetailMapper;

    /**
     * 查询页面图片与元素条件明细
     * 
     * @param id 页面图片与元素条件明细主键
     * @return 页面图片与元素条件明细
     */
    @Override
    public PageImageElementConditionDetail selectPageImageElementConditionDetailById(Long id)
    {
        return pageImageElementConditionDetailMapper.selectPageImageElementConditionDetailById(id);
    }

    /**
     * 查询页面图片与元素条件明细列表
     * 
     * @param pageImageElementConditionDetail 页面图片与元素条件明细
     * @return 页面图片与元素条件明细
     */
    @Override
    public List<PageImageElementConditionDetail> selectPageImageElementConditionDetailList(PageImageElementConditionDetail pageImageElementConditionDetail)
    {
        return pageImageElementConditionDetailMapper.selectPageImageElementConditionDetailList(pageImageElementConditionDetail);
    }

    /**
     * 新增页面图片与元素条件明细
     * 
     * @param pageImageElementConditionDetail 页面图片与元素条件明细
     * @return 结果
     */
    @Override
    public int insertPageImageElementConditionDetail(PageImageElementConditionDetail pageImageElementConditionDetail)
    {
        return pageImageElementConditionDetailMapper.insertPageImageElementConditionDetail(pageImageElementConditionDetail);
    }

    /**
     * 修改页面图片与元素条件明细
     * 
     * @param pageImageElementConditionDetail 页面图片与元素条件明细
     * @return 结果
     */
    @Override
    public int updatePageImageElementConditionDetail(PageImageElementConditionDetail pageImageElementConditionDetail)
    {
        return pageImageElementConditionDetailMapper.updatePageImageElementConditionDetail(pageImageElementConditionDetail);
    }

    /**
     * 批量删除页面图片与元素条件明细
     * 
     * @param ids 需要删除的页面图片与元素条件明细主键
     * @return 结果
     */
    @Override
    public int deletePageImageElementConditionDetailByIds(String ids)
    {
        return pageImageElementConditionDetailMapper.deletePageImageElementConditionDetailByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除页面图片与元素条件明细信息
     * 
     * @param id 页面图片与元素条件明细主键
     * @return 结果
     */
    @Override
    public int deletePageImageElementConditionDetailById(Long id)
    {
        return pageImageElementConditionDetailMapper.deletePageImageElementConditionDetailById(id);
    }
}
